package com.cz.run.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.cz.run.beans.mysql.UserPoint;
import com.cz.run.mapper.UserPointDao;
import com.cz.run.service.IUserPointService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户积分表 服务实现类
 * </p>
 *
 * @author CAIYJ
 * @since 2018-05-23
 */
@Service
public class UserPointServiceImpl extends ServiceImpl<UserPointDao, UserPoint> implements IUserPointService {

    @Override
    public List<UserPoint> getUserPointByUserName(Wrapper<UserPoint> wrapper) {
        return this.baseMapper.getUserPointByUserName(wrapper);
    }

    @Override
    public int getCountByUserName(Wrapper<UserPoint> wrapper) {
        return this.baseMapper.getCountByUserName(wrapper);
    }
}
